"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getWidgetRowConfig = void 0;
var _xeUtils = _interopRequireDefault(require("xe-utils"));
var _util = require("../render/util");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const getWidgetRowConfig = params => {
  const {
    $formDesign
  } = params;
  const defaultColSize = 2;
  return {
    title: _util.handleGetFormDesignWidgetName,
    group: 'layout',
    icon: 'vxe-icon-row-col',
    options: {
      colSize: defaultColSize,
      colSpan: '12,12'
    },
    children: $formDesign ? _xeUtils.default.range(0, defaultColSize).map(() => {
      return $formDesign.createEmptyWidget();
    }) : []
  };
};
exports.getWidgetRowConfig = getWidgetRowConfig;